Lua/Events/Shared/PlayerQuit
From JC2-MP Documentation
< Lua
Name | PlayerQuit |
---|---|
Arguments (in table) | Player player |
Return option | None |
Description
Fired when a player leaves the server in any way, including being kicked, banned, or losing connection.
Examples
function Foo(args) print(args.player:GetName().." left the server") end Events:Subscribe("PlayerQuit", Foo)